package com.ff.miaosha.service;

import com.ff.miaosha.dao.UserDao;
import com.ff.miaosha.domain.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserService {

    @Autowired
    UserDao userDao;

    public boolean tx(){
        User u1=new User();
        u1.setId(1);
        u1.setName("2222");
        userDao.insert(u1);
        return true;
    }
}
